POV-Ray : Newsgroups : povray.general : But I didn't ask for variable promotion : But I didn't ask for variable promotion Server Time
4 Aug 2024 22:17:09 EDT (-0400)
  But I didn't ask for variable promotion  
From: Greg M  Johnson
Date: 30 Jan 2003 09:06:03
Message: <3e39314b$1@news.povray.org>
// Scene file as follows  uncomment one declaration of rah or the other:
#declare RRR=seed(123);

#macro ra()
rand(RRR)-0.5
#end

#declare n=0;
#while(n<1000)

// if you uncomment the line below
// you get what I want
// #declare rah= 0.9*(rand(RRR)-0.5)*x;

// if you uncomment the line below
// you get a variable that has x,y,z
//#declare rah= 0.9*ra()*x;

       #declare obstacle= 12*vaxis_rotate(x*1+rah,y,360*n/1000);
        sphere{obstacle, .1 pigment {rgb 0.95}finish{ambient 1}}
#declare n=n+1;
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.